package com.atguigu.day02;

public class Test8 {

    public static void main(String[] args) {
        int x, y, z;
        x = 3;
        y = 4;
        z = 1;
        int max;
        max = x > y ? x : y;
        max = max > z ? max : z;
        System.out.println("3,4,1中的最大值是:" + max);
    }
}
